<?php
/**
 * Created by PhpStorm.
 * User: caichunmin
 * Date: 2017/1/5
 * Time: 14:02
 */

namespace YMApi\Controller;

use Think\Controller;
//use Think\Hook;
class RecEngController extends Controller {
    public function test(){

        $good_list = M("goods")->limit(10,10)->order('last_update desc')->select();

        $param = array('isertList', 90, 'view', $good_list);
        $param = array('insertOne', 80, 100 , 'click', 1, 1);
        $param = array('isertList', '' , 'consume', 100);
        \Think\Hook::listen('receng', $param);
    }
}